package org.tongdao.yulong.basic_di.complexfield;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2020年09月28日 5:54 下午
 */
@Component
public class Dog {
  @Value("dog_dog")
  private String name;
  @Autowired
  @Qualifier("administrator")
  private Person person;

  public void setPerson(Person person) {
    this.person = person;
  }

  @Override
  public String toString() {
    return "Dog{" +
        "name='" + name + '\'' +
        ", person=" + person +
        '}';
  }
}
